package tickets;

import java.io.Serializable;
import java.util.Date;

import javax.crypto.SecretKey;

public class Ticket implements Serializable {

  private static final long serialVersionUID = 5259424138060807674L;

  private String name;
  private SecretKey key;
  private Date time;

  public Ticket(String name, SecretKey key, Date time) {
    super();
    this.name = name;
    this.key = key;
    this.time = time;
  }

  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }

  public String getName() {
    return name;
  }

  public SecretKey getKey() {
    return key;
  }
}
